<!--
 * @author: 十一
 * @since: 2024-06-17
 * Header.vue
 * @desc: new page
-->
<template>
  <div class="flex justify-between items-center pt-5 pb-5">
    <div class="font-medium text-xl cursor-pointer" @click="handleClick(0)">
      首页
    </div>
    <div class="cursor-pointer" @click="handleClick(1)">赞助</div>
  </div>
</template>
<script lang="ts" setup>
import { useRouter } from "#app";
const router = useRouter();
const handleClick = (args: number) => {
  if (args === 0) {
    router.push("/");
    return;
  } else if (args === 1) {
    router.push("/sponsor");
    return;
  }
};
</script>



